﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsTest.Purchase
{
    public partial class PurchasePlanManager : MainTabUserContorl
    {

        string[][] initData = new string[][] { new string[] { "00-111222-3344", "PCI0032", "Micorsoft", "2000", "片", "00-345222-3344", "2012-1-1", "" }, new string[] { "01-121222-3344", "MMCIS", "IBM", "6000", "个", "00-345222-3344", "2012-2-1", "" } };

        public PurchasePlanManager()
        {
            InitializeComponent();

            this.dataGridView1.Rows.Add();
            for (int i = 0; i < initData.Length; i++)
            {
                for (int j = 0; j < initData[0].Length; j++)
                {
                    this.dataGridView1.Rows[i].Cells[j].Value = initData[i][j];
                }

            }
        } 
        
        private MainForm mainForm;

        public void SetMainForm(MainForm mainForm)
        {
            this.mainForm = mainForm;
        }

        private void button9_Click(object sender, EventArgs e)
        {
            Public.Operator.Create_MainTabPage(Public.OperatorLabelEnum.PURCHASE_ADD, Public.WindowModel.DEFAULT, this.MainForm);
        }
     
    }

   
}
